import { request } from './request'

// 场馆管理 API
const venueAPI = {
  // 查询场馆列表
  list: (params) => {
    return request('/venue/list', {
      method: 'POST',
      data: params || {}
    })
  },

  // 新增场馆
  save: (venueData) => {
    return request('/venue/save', {
      method: 'POST',
      body: venueData
    })
  },

  // 修改场馆
  update: (venueData) => {
    return request('/venue/update', {
      method: 'POST',
      body: venueData
    })
  },

  // 批量删除场馆
  removeByIds: (ids) => {
    return request('/venue/removeByIds', {
      method: 'POST',
      body: ids
    })
  },

  // 上传场馆图片
  uploadPicture: (uploadData) => {
    return request('/venue/uploadPicture', {
      method: 'POST',
      body: uploadData
    })
  },

  // 删除场馆图片
  removePicture: (deleteData) => {
    return request('/venue/removePicture', {
      method: 'POST',
      body: deleteData
    })
  },

  // 获取场馆类型
  listVenueType: () => {
    return request('/venue/listVenueType')
  }
}

export { venueAPI }